//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_LATCHED_ALU_H
#define MYSYSTEMCLEARNING_LATCHED_ALU_H

#include "systemc.h"

SC_MODULE(latched_alu) {
    sc_in<bool> clk, a, b;
    sc_out<bool> z;

    void prc_alu();

    SC_CTOR(latched_alu) {
        SC_METHOD(prc_alu);
        sensitive_pos << clk << a << b;
    }
};

#endif //MYSYSTEMCLEARNING_LATCHED_ALU_H
